package command

import (
	"flag"
	"fmt"
	"os"
)

var (
	Help bool
	Confing string
)

func init() {
	flag.BoolVar(&Help, "h", false, "this help")
	flag.StringVar(&Confing, "c", "conf/config.yml", "set configuration `file`")

	// 改变默认的 Usage
	flag.Usage = Usage
}

func Usage() {
	fmt.Fprintf(os.Stderr, `gomock version: gomock/1.0.0
Usage: gomock [-h] [-c filename]

Options:
`)
	flag.PrintDefaults()
}